<template>
  <div class="child">
    <h3>Child组件</h3>
    <Child2></Child2>
  </div>
</template>

<script>
import {reactive} from "vue";
import Child2 from "@/components/Child2";

export default {
  name: "Child",
  components: {Child2},
  props: [],
  emits: [], // 用于注册VC的自定义事件，可不写，但会报警
  setup() {
    let data = reactive({});
    return {
      data,
    }
  },
}
</script>

<style scoped>
.child {
  background-color: skyblue;
  padding: 10px;
}
</style>